package com.songlanyun.modules.account.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.songlanyun.common.drive.ValueObject;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 王熙伟
 */
@Data
public class AccountExportVO  implements Serializable, ValueObject {

    /**
     * 手机号
     */
    @Excel(name = "用户手机号", orderNum = "1", width = 15)
    private String mobile;

    /**
     * 昵称
     */
    @Excel(name = "用户昵称", orderNum = "2", width = 30)
    private String nickname;

    /**
     * 等级
     */
    @Excel(name = "会员身份", orderNum = "3", width = 30)
    private String grade;

    /**
     * 已付总金额
     */
    @Excel(name = "已付总金额", orderNum = "4", width = 15)
    private BigDecimal totalAmount;

    /**
     * 可用余额
     */
    @Excel(name = "可用余额", orderNum = "5", width = 15)
    private BigDecimal balance;

    /**
     * 贡献值
     */
    @Excel(name = "贡献值", orderNum = "6", width = 15)
    private BigDecimal commissionAble;

    /**
     * 是否被激活
     */
    @Excel(name = "激活状态", orderNum = "7", width = 15)
    private String activating;

    /**
     * 可用积分
     */
    @Excel(name = "可用积分", orderNum = "8", width = 15)
    private BigDecimal integralAble;

    /**
     * '锁定状态（0是未锁定可以正常使用，1锁定后不能使用'
     */
    @Excel(name = "账户启用状态", orderNum = "9", width = 15)
    private String lockStatus;

    /**
     * 注册时间
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "注册时间", orderNum = "10", width = 30)
    private String registerTime;
}
